package com.责任链模式.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.concurrent.ConcurrentHashMap;

@Component
public class Factory {

    @Autowired
    AliService aliService;
    @Autowired
    OssService ossService;
    @Autowired
    WxService wxService;

    @PostConstruct
    public void init(){
        aliService.setBaseAbstractClass(ossService);
        ossService.setBaseAbstractClass(wxService);
//        wxService.setBaseAbstractClass(aliService);
    }
}
